<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>受控组件 - 高阶函数</title>
</head>
<body>
    <div id="root"> </div>

    <script src="../js/react.development.js"></script>
    <script src="../js/react-dom.development.js"></script>
    <script src="../js/babel.min.js"></script>

    <script type="text/babel">
        /**
         * 一个函数: 如果它的返回值是一个函数, 或者接收的参数是一个函数, 那么该函数就是一个『高级函数』
         * 
         * 1. 数组的方法 forEach  map  reduce some every  
         * 2. Promise   then  catch
         * 3. node  readFile  readdir  unlink
         * 4. 定时器  setTimeout setInterval
         * 5. bind 
         * 
         */

         function fn(){
             return () => {}
             return function(){}
         }

         function fn2(executor){
            executor();
         }

         function a(){
             
         }

         let b = a.bind();



    </script>
</body>
</html>